﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

public class SceneRunActorAvatar:SceneActorAvatar
{
    public WolkController workController;

    protected override void OnInitComplete()
    {
        base.OnInitComplete();
        workController = actorGO.AddComponent<WolkController>();
    }


	public void Walk(Vector3 dir,float speed)
    {
        if (workController != null)
        {
            workController.Walk(dir, speed);
            PlayAnimation(AnimationType.paobu);
        }
    }

	public void Stop(){
        if (workController != null) 
        {
            workController.Stop();
            PlayAnimation(AnimationType.daiji);
        }
	}

}
